package top.qitun.common.api.gateway;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import top.qitun.bizz.order.lineitem.entity.LineItem;
import top.qitun.bizz.shop.ttable.entity.TTableBO;
import top.qitun.model.response.ObjectDataResponse;

@FeignClient(name = "order-ms")
public interface OrderServiceAPI {

	@RequestMapping(value = "v1/order/{tableid}/{clientid}", method = RequestMethod.POST)
	ObjectDataResponse<TTableBO> createOrder(@PathVariable("tableid") Integer tableid,
			@PathVariable("clientid") Integer clientId, @RequestBody List<LineItem> lineItemList);

}
